import { createRouter,createWebHistory} from "vue-router";

const routes = [
    {
        path: "/",
        name: "Index",
        component:  () => import('@/views/index.vue'),
    },
    {
        path: "/login",
        name: "login",
        component:  () => import('@/views/login/login.vue'),
    },
    {
        path: "/text",
        name: "Text",
        component:  () => import('@/views/test.vue'),
    },
   
];

// 导出路由
const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
